<template>
  <div class="page-nation_page">
    <el-pagination
      size="small"
      background
      layout="prev, pager, next"
      :total="total"
      :page-size="5"
      class="mt-4"
      @change="changePage"
    />
  </div>
</template>

<script setup>
import { defineEmits, computed } from 'vue';
import SvgIcon from '@/components/svgIcon/index.vue';
import { ElPagination } from 'element-plus';
const emit = defineEmits(['changeCurrent']);
const props = defineProps({
  current: {
    type: Number,
    default: 1,
  },
  total: {
    type: Number,
    default: 0,
  },
});
const changePage = (page, size) => {
  console.log('^^^^^^^^^^^', page, size);
  emit('changeCurrent', page);
};
</script>

<style scoped lang="scss">
.page-nation_page {
  width: 100%;
  height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}
</style>
